* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

@media screen and (min-width:540px) {
  html {
    font-size: 50px;
  }
}

@media screen and(max-width:539px) {
  html {
    font-size: 10vw;
  }
}

a {
  text-decoration: none;
}

.h {
  text-align: center;
  font-size: 0.8rem;
  color: var(--dark-mode-color)
}

.info {
  display: flex;
  text-align: center;
  margin: 1rem auto;
  justify-content: center;
  color: var(--dark-mode-color);
  gap: 0.1rem;
}

.info input {
  border: 1px solid var(--dark-mode-border-color, black);
  width: 2.4rem;
  height: 30px;
}

.tb {
  text-align: center;
  margin: 0 auto;
  border-collapse: collapse;
  color: var(--dark-mode-color);
  font-size: 0.4rem;
}

.tb thead {
  background-color: #dcdcdc;
}

.tb th {
  margin: 0;
  padding: 0.4rem;
  border-bottom: 1px solid var(--dark-mode-border-color, black);
  color: var(--dark-mode-thcolor);
}

.tb td {
  margin: 0;
  padding: 0.4rem;
  border-bottom: 1px solid var(--dark-mode-border-color, black);
}

/* 夜间（日间）模式 */
/* 切换按钮 */
.mode-switch {
  display: flex;
  align-items: center;
  margin-top: 0.2rem;
  margin-left: 0.2rem;
  color: var(--dark-mode-color);
  gap: 0.1rem;
  font-size: 0.4rem;
}

.mode-switch .toggle {
  width: 1.2rem;
  height: 0.5rem;
  border-radius: 100px;
  background-color: var(--dark-mode-switch-switch-bgc, black);
  cursor: pointer;
}

.mode-switch .circle {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 100%;
  background-color: var(--dark-mode-bgc, white);
  margin: 0.1rem;
  pointer-events: none;
  transform: translateX(var(--dark-mode-translateX, 0));
  transition: ease;
}

.dark-mode {
  --dark-mode-border-color: white;
  --dark-mode-color: white;
  --dark-mode-bgc: black;
  --dark-mode-switch-bgc: white;
  --dark-mode-switch-switch-bgc: white;
  --dark-mode-thcolor: red;
  --dark-mode-translateX: 0.7rem
}

body {
  background-color: var(--dark-mode-bgc);
}

.btn {
  border: none;
  width: 100%;
  vertical-align: middle;
  padding: 0.3rem;
  font-size: 0.4rem;
  cursor: pointer;
}